﻿using Jimmy.NinjiectDemo.Service;
using System.Web.Mvc;

namespace NinjectAutoInjectDemo.Controllers
{
    public class TestController : Controller
    {
        private IPersonService _personService;

        public TestController(IPersonService personService)
        {
            _personService = personService;
        }

        public ActionResult GetResult()
        {
            ViewBag.Title = _personService.GetPersonInfo("admin");

            return View();
        }
    }
}